package com.hb.core.pojo.project.section.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.Attachments;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 投标人/供应商提出问题表
 * </p>
 *
 * @author zhongdl
 * @since 2021-11-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_problem")
@ApiModel(value="Problem对象", description="投标人/供应商提出问题表")
public class Problem extends MPCommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "方案包ID")
    private Long sectionId;

    @ApiModelProperty(value = "供应商id")
    private Long tenderId;

    @ApiModelProperty(value = "问题附件")
    private Attachments attachment;

    @ApiModelProperty(value = "问题标题")
    private String title;

    @ApiModelProperty(value = "问题内容")
    private String content;

    @ApiModelProperty(value = "1 投标人提出问题 2 招标人回答问题 3 投标人回执")
    private Integer type;

    @ApiModelProperty(value = "问题/回执id(父级id)")
    private Long parentId;

    @ApiModelProperty(value = "投标人的状态(1 待发出 2 已发出 3 待确认 4 已确认) 招标人(2:待回复 3 已回复 4已确认) ")
    private Integer status;

    @ApiModelProperty(value = "提出人id")
    private Long proposerId;

    @ApiModelProperty(value = "提出时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime proposerTime;

    @ApiModelProperty(value = "提出人姓名")
    private String proposerName;

    @ApiModelProperty(value = "联系方式")
    private String contactInformation;
}
